﻿@model MxTol.Models.Admin
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
       <script src="/Contents/scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
        <script src="/Contents/scripts/functions.js" type="text/javascript"></script>
        <link href="/Contents/css/glassbtn.css" rel="stylesheet" type="text/css" />
        <script src="/Contents/scripts/shadeform/script/form.js" type="text/javascript"></script>
        <link href="/Contents/scripts/shadeform/style/formsytle.css" rel="stylesheet"
            type="text/css" />
        <script src="/Contents/scripts/manager-js/admin-manager.js" type="text/javascript"></script>
        <style type="text/css">
            .left{float:left; width:60px; text-align:right;font-family:微软雅黑;color:#444444;line-height:26px;margin-bottom:15px;}
            .right{float:left;}
            
            .shuru{border:1px solid #ccc; height:23px; width:170px;line-height:23px; text-indent:5px;margin-bottom:15px;}
            .shuru:hover{border:1px solid #88C5EE; height:23px; line-height:23px; text-indent:5px;}
        </style>
    </head>
    <body>
        <div style=" margin:100px auto; width:280px;height:400px">
            <div style="float:left;" >
                <span class="left">姓名：</span>
                <span class="right">
                    <input type="text" class="shuru" id="name" value="@Model.Name" disabled="disabled"/>
                </span>
                <span class="left">电话：</span>
                <span class="right">
                    <input type="text" class="shuru" id="phone" value="@Model.Phone" disabled="disabled"/>
                </span>
                <span class="left">账号：</span>
                <span class="right">
                    <input type="text" class="shuru" id="account" value="@Model.Account" disabled="disabled"/>
                </span>
                <span class="left">级别：</span>
                 <span class="right">
                    @{
                        string level = "管理员";
                        if(Model.Level == 1)
                        {
                            level = "超级管理员";
                        }
                        else if(Model.Level == 2)
                        {
                            level = "系统管理员";
                        }
                        <input type="text" class="shuru" id="level" value="@level" disabled="disabled"/>
                      }
                </span>
            </div> 
            <div style="float:left;">
                <input type="button" class="greenbtn" style="width:70px;margin-left:60px;margin-top:15px;" value="修改密码" name="update_btn" onclick="showUpdatePswordForm('@Model.ID')"/>
            </div>
            <div style="float:left;">
                <input type="button" class="greenbtn" style="width:70px;margin-top:15px;margin-left:25px;" value="返回主页" name="back_home" onclick="backHome()" />
            </div>
          </div>
        <script type="text/javascript">
            function backHome() {
                window.location = "/Admin/Main"
            }

            function showUpdatePswordForm(id) {
                var updateForm = {
                    title: "修改密码",
                    width: 310,
                    height: 200,
                    templete: "<form action='' method='get' class='formClass'>" +
                            "<table width='100%'>" +
                            "<tr>" +
                            "<td align='left' valign='top'><iframe src='/AdminsManagement/UpdatePswordView?id=" + id.toString() + "&t=" + Math.random() + "'width='300' height='150'  marginwidth='0' marginheight='0' frameborder='0' allowtransparency='true'></iframe></td>" +
	                        "</tr>" +
                            "</table>" +
                            "</form>"
                }
                Shade.show(updateForm);
            }
            function closeShade() {
                Shade.hidden();
            }
        </script>
    </body>
</html>
